package top.lishuoboy.knife4j.swagger3_0_0.entry;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 用户
 *
 * @date ：Created in 2021-5-23 19:04
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
//@ApiModel(value = "用户")
public class User {
    /** 用户ID */
    @ApiModelProperty(value = "用户ID")
    private int id;
    /** 用户名 */
    @ApiModelProperty(value = "用户名")
    @NotBlank
    private String userName;

    /** 邮箱 */
    @ApiModelProperty(value = "邮箱")
    @Email
    private String email;
}
